﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FazaDemo.Data;

namespace FazaDemo.BL.DataAccess
{
    public class TsDistrictRepository : IInfoEntityRepository
    {

        private readonly IRepository<TS_DISTRICT, int> _repository;

        public TsDistrictRepository()
        {
            _repository = new EntityRepository<TS_DISTRICT, int>();
        }

        public IList<SuppleInfoEntity> GetAll()
        {
            var loadResult = _repository.GetAll();
            IList<SuppleInfoEntity> result = new List<SuppleInfoEntity>();
            foreach (var district in loadResult)
            {
                //result.Add(district);
            }
            return result;
        }

        public IList<SuppleInfoEntity> FindWhere(Func<Data.SuppleInfoEntity, bool> predicate)
        {
            return null;
        }

    }
}
